package com.parachutes.aspinterfaceapi.domain;


import com.github.pagehelper.PageInfo;
import com.parachutes.aspsystemapi.domian.Result;
import com.parachutes.aspsystemapi.feign.SysUserServiceFeign;
import feign.hystrix.FallbackFactory;

import java.util.List;

public class InterfaceFallback implements FallbackFactory<InterfaceFeign> {
    @Override
    public InterfaceFeign create(Throwable throwable) {
        return new InterfaceFeign() {

            @Override
            public Result<PageInfo<BusInterface>> getInfoByIds(String ids, Integer page, Integer size) {
                return Result.of(false, "接口服务异常，请稍后再试！", null);
            }
        };
    }
}
